import Home from '@/views/Home'
import Search from '@/views/Search'
import Loin from '@/views/Login'
import Register from '@/views/Register'
import Detail from '@/views/Detail'
import AddCartSuccess from '@/views/AddCartSuccess'
import ShopCart from '@/views/ShopCart'
import Trade from '@/views/Trade'
import Pay from '@/views/Pay'
import PaySuccess from '@/views/PaySuccess'
export default [
    {
        path:'/trade',
        component:Trade,
    },
    {
        path:'/pay',
        component:Pay,
    },{
        path:'/paysuccess',
        component:PaySuccess,
    },
    {
        path:'/shopcart',
        component:ShopCart,
    },
    {
        path:'/addcartsuccess',
        component:AddCartSuccess,
    },
    {
        path:'/detail/:skuId',
        component:Detail,
    },
    {
        path:'/home',
        component:Home
    },
    {
        path:'/search/:keyword?',
        component:Search,
        name:'search'
    },
    {
        path:'/login',
        component:Loin,
        meta:{
            isHidden: true
        }
    },{
        path:'/register',
        component:Register,
        meta: {
            isHidden: true
        }
    },
    {
        path:'/',
        redirect:'/home'
    }
]